<template>
  <div class="swiper">
    <el-carousel :interval="4000" type="card" height="250px" indicator-position="none">
      <el-carousel-item v-for="item in myimg" :key="item">
        <!-- <h3 text="2xl" justify="center">{{ item }}</h3> -->
        <img :src="item" :style="{
          width: '100%',
        }" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script setup lang=ts>
import { ref } from 'vue';

    const myimg=ref([
    'https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/cd7a1aaea8e1c5e3d26fe2591e561798.png~tplv-uwbnlip3yd-webp.webp',
      'https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/6480dbc69be1b5de95010289787d64f1.png~tplv-uwbnlip3yd-webp.webp',
      'https://p1-arco.byteimg.com/tos-cn-i-uwbnlip3yd/0265a04fddbd77a19602a15d9d55d797.png~tplv-uwbnlip3yd-webp.webp',
    ])
const swiper = [
  {}
]

</script>
  
<style scoped lang=scss>
.swiper {
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

.el-carousel__item--card {
  border-radius: 6px;
  // width: 800px;
}

.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;

}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>